import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom'
import Home from './views/Home';

class App extends Component {
  render() {
    return (
      <Switch>
        {/* 如果有子路由，则父路由规则不能用严格模式 */}
        <Route path="/home" component={Home} />
        {/* <Route path="/cinema" component={Cinema} /> */}
      </Switch>
    );
  }
}

export default App;
